const API = {
    // Auth
    LOGIN        : { url: 'auth/login', method: 'POST', status: 200 },
    LOGOUT       : { url: 'auth/logout', method: 'DELETE', status: 204 },
    ME_INFO      : { url: 'auth/me', method: 'GET', status: 200 },
    REFRESH_TOKEN: { url: 'auth/refresh', method: 'PUT', status: 200 },

    // User
    USER_INDEX    : { url: 'user/', method: 'GET', status: 200 },
    USER_UPDATE   : { url: 'user/', method: 'PUT', status: 200 },
    USER_CREATE   : { url: 'user/', method: 'POST', status: 201 },
    USER_DELETE   : { url: 'user/', method: 'DELETE', status: 204 },
    USER_TYPE_LIST: { url: 'user/type', method: 'GET', status: 200 },
    USER_STATUS: { url: 'user/switchStatus', method: 'GET', status: 200 },

    // Role
    ROLE_INDEX : { url: 'role/', method: 'GET', status: 200 },
    ROLE_CREATE: { url: 'role/', method: 'POST', status: 201 },
    ROLE_UPDATE: { url: 'role/', method: 'PUT', status: 200 },
    ROLE_DELETE: { url: 'role/', method: 'DELETE', status: 204 },

    // Permission
    PERMISSION_INDEX: { url: 'permission/', method: 'GET', status: 200 },

    // ACCOUNT
    ACCOUNT_INDEX : { url: 'account/', method: 'GET', status: 200 },
    ACCOUNT_CREATE: { url: 'account/', method: 'POST', status: 201 },
    ACCOUNT_UPDATE: { url: 'account/', method: 'PUT', status: 200 },
    ACCOUNT_DELETE: { url: 'account/', method: 'DELETE', status: 204 },
    CLUES         : { url: 'account/clues/', method: 'GET', status: 200 },
    SIGNATURE     : { url: 'account/signature/', method: 'GET', status: 200 },

    CLUE_INDEX: { url: 'clue', method: 'GET', status: 200 },
    CLUE_EXCEL: { url: 'clue/excel', method: 'GET', status: 200 },

    // Distribution
    DISTRIBUTION_CLUE: { url: 'distribution/', method: 'POST', status: 200 },

    // Validation

    USERNAME_EXISTS: { url: 'username/exists', method: 'GET', status: 200 },

};

export default API;
